package com.bdqn.systems.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.systems.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author cp
 * @since 2020-11-30
 */
public interface RoleService extends IService<Role> {

    Page<Role> findByName(String name,Page<Role> page);

    boolean editRoleState(Integer id);

    Integer getNotNullName(String name);

    Integer insert(Role role);

    void exportRoleExcel(HttpServletResponse response, List<Role> roles) throws IOException;

    List<Role> findRoleAll(String roleName);

}
